import "dotenv/config";
import inquirer from "inquirer";

import { questions } from "./questions/postTask";
import { postTask } from "./utils/postTask";

inquirer.prompt(questions).then(async (answers) => {
  const taskList: string[] = answers.taskList;
  console.log(taskList)
  await Promise.all(taskList.map(m => postTask(m)))
});
